# Contributor: Nathan Caldwell <saintdev@gmail.com>
# Maintainer: Nathan Caldwell <saintdev@gmail.com>
pkgname=llmnrd
pkgver=0.7
pkgrel=1
pkgdesc="Link-Local Multicast Resolution (LLMNR) Daemon for Linux"
url="https://github.com/tklauser/llmnrd"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
# llmnrd has no test suite
options="!check"
source="llmnrd-$pkgver.tar.gz::https://github.com/tklauser/llmnrd/archive/v$pkgver.tar.gz
	llmnrd.initd
	llmnrd.confd"

build() {
	make
}

package() {
	make prefix=/usr DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="
9376f42b51a54eea50e990b29b3c1697353da90c3d80c4a756a66828c0d22e969f43fa9798a12be1ab4a7cbe641b1d40bc8d2fb9364af755492077020bb43010  llmnrd-0.7.tar.gz
10466be3e64d69999db9f026640ae44a86f0bcfa8e2fd2e07292cc9bb7c5aa6877f71338b4b0532e7a5415a6e1473252943e407cf2cc78ba4b3efd860bc75435  llmnrd.initd
a99c34e6c67f47adbaa828378e257c28b40882be9e113dc3ec9bd6ab7b65c9440881665c9d0331117eef31bcec5e22c4d2fdd91cbaf3d079acc38b345469c9f5  llmnrd.confd
"
